try {
    //委外到货
	Type.registerNamespace('ScArriveScanVO');
	//委外到货VO
	ScArriveScanVO = function() {};
	ScArriveScanVO.prototype = new NCMMPubUtil.SuperVO();
	ScArriveScanVO.PK_SCARRIVESCAN = {
		name: "pk_scarrivescan",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//委外订单主键**	
	ScArriveScanVO.PK_ORDER = {
		name: "pk_order",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//委外单号
	ScArriveScanVO.VBILLCODE = {
		name: "vbillcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单据日期
	ScArriveScanVO.DBILLDATE = {
		name: "dbilldate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//采购部门
	ScArriveScanVO.PK_DEPT = {
        name: "pk_dept",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    ScArriveScanVO.PK_DEPT_NAME = {
        name: "pk_dept_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
	//委外订单明细**
	ScArriveScanVO.PK_ORDER_B = {
		name: "pk_order_b",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料
	ScArriveScanVO.PK_MATERIAL = {
		name: "pk_material",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料编码
	ScArriveScanVO.MATERIALCODE = {
		name: "materialcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料名称
	ScArriveScanVO.MATERIALNAME = {
		name: "materialname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//规格
	ScArriveScanVO.MATERIALSPEC = {
		name: "materialspec",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//型号
	ScArriveScanVO.MATERIALTYPE = {
		name: "materialtype",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料简称
	ScArriveScanVO.MATERIALSHORTNAME = {
		name: "materialshortname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};	
	//可到货主数量
	ScArriveScanVO.NNUM = {
		name: "nnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//可到货数量
	ScArriveScanVO.NASTNUM = {
		name: "nastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位
	ScArriveScanVO.CUNITID = {
		name: "cunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位名称
    ScArriveScanVO.CUNITID_NAME = {
        name: "cunitid_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };	
	//辅单位
	ScArriveScanVO.CASTUNITID = {
		name: "castunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//辅单位名称
    ScArriveScanVO.CASTUNITID_NAME = {
        name: "castunitid_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    //换算率
     ScArriveScanVO.VCHANGERATE = {
        name: "vchangerate",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };	
	//计划到货日期**
	ScArriveScanVO.DPLANARRVDATE = {
		name: "dplanarrvdate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//表头ts
	ScArriveScanVO.HTS = {
		name: "hts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	//供应商名称
	ScArriveScanVO.PK_SUPPLIER_NAME = {
		name: "pk_supplier_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//供应商
	ScArriveScanVO.PK_SUPPLIER = {
		name: "pk_supplier",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//库存组织组织
	ScArriveScanVO.PK_STOCKORG = {
		name: "pk_stockorg",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库**
	ScArriveScanVO.PK_RECVSTORDOC = {
		name: "pk_recvstordoc",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库名称**
	ScArriveScanVO.PK_RECVSTORDOC_NAME = {
		name: "pk_recvstordoc_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	//收货仓库名称**
	ScArriveScanVO.BISBACK = {
		name: "bisback",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//表体ts
	ScArriveScanVO.BTS = {
		name: "bts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	
	//批次号编码
	ScArriveScanVO.VBATCHCODE = {
		name: "vbatchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//批次号
	ScArriveScanVO.PK_BATCHCODE = {
		name: "pk_batchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//扫描主数量
	ScArriveScanVO.NSCANNUM = {
		name: "nscannum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//扫描数量
	ScArriveScanVO.NSCANASTNUM = {
		name: "nscanastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//行号
	ScArriveScanVO.CROWNO = {
		name: "crowno",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	//业务员**
	ScArriveScanVO.CEMPLOYEEID={
	    name:"cemployeeid",
	    type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//**
    ScArriveScanVO.CEMPLOYEEID_NAME={
	    name:"cemployeeid_name",
	    type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	ScArriveScanVO.prototype.getAllAttrs = function() {
		return [
		    ScArriveScanVO.PK_SCARRIVESCAN,
			ScArriveScanVO.PK_ORDER,
			ScArriveScanVO.PK_ORDER_B,
			ScArriveScanVO.MATERIALNAME,
			ScArriveScanVO.NNUM,
			ScArriveScanVO.NASTNUM,
			ScArriveScanVO.VBILLCODE,
			ScArriveScanVO.DBILLDATE,
			ScArriveScanVO.DPLANARRVDATE,
			ScArriveScanVO.HTS,
			ScArriveScanVO.PK_SUPPLIER_NAME,
			ScArriveScanVO.PK_STOCKORG,
			ScArriveScanVO.PK_RECVSTORDOC,
			ScArriveScanVO.PK_RECVSTORDOC_NAME,
			ScArriveScanVO.PK_MATERIAL,
			ScArriveScanVO.MATERIALSPEC,
			ScArriveScanVO.MATERIALTYPE,
			ScArriveScanVO.MATERIALSHORTNAME,
			ScArriveScanVO.MATERIALCODE,
			ScArriveScanVO.PK_DEPT,
			ScArriveScanVO.PK_DEPT_NAME,
			ScArriveScanVO.BTS,
			ScArriveScanVO.CASTUNITID,
			ScArriveScanVO.CASTUNITID_NAME,
			ScArriveScanVO.CUNITID,
			ScArriveScanVO.CUNITID_NAME,
			ScArriveScanVO.VCHANGERATE,
			ScArriveScanVO.VBATCHCODE,
			ScArriveScanVO.PK_BATCHCODE,
			ScArriveScanVO.NSCANNUM,
		    ScArriveScanVO.NSCANASTNUM,
			ScArriveScanVO.CROWNO,
			ScArriveScanVO.CEMPLOYEEID,
			ScArriveScanVO.CEMPLOYEEID_NAME,
			ScArriveScanVO.BISBACK]};
	ScArriveScanVO.prototype.getTableName = function() {
		return "sc_arrive_scan";
	};
	ScArriveScanVO.prototype.getPrimaryAttr = function() {
		return ScArriveScanVO.PK_SCARRIVESCAN ;
	};
} catch(e) {
	$e(e);
}